package org.jctc.els.modules.biz.entity.customer;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 客服表
 * </p>
 *
 * @author lyh
 * @since 2021-03-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("cmf_customer_service")
@ApiModel(value="Customer对象", description="客服表")
public class Customer extends Model<Customer> {

    // private static final long serialVersionUID = 1L;

    @TableId(value = "id",  type = IdType.AUTO)
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    @ApiModelProperty(value = "客服电话，存储的是JSON字符串")
    private String serviceTelephone;

    @ApiModelProperty(value = "服务时间，文本内容，可自由定义，直接显示到客户端即可。")
    private String serviceTime;

    @ApiModelProperty(value = "创建人姓名")
    private String createUserName;

    @ApiModelProperty(value = "是否启用  1：启用  0：禁用")
    private Integer isEnable;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "创建人ID")
    private Long createUserId;
}
